package com.bailan.pojo;

import java.io.Serializable;
import java.util.Objects;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

/**
 * <p>
 *
 * </p>
 *
 * @author BaiLan
 * @since 2022:05:24
 */
@Getter
@Setter
@ToString
public class Admin implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId("A_id")
    private String id;

    @TableField("A_password")
    private String password;

    private String aName;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        Admin admin = (Admin) o;
        return id.equals(admin.id) && password.equals(admin.password);
    }

    @Override
    public int hashCode() {
        return Objects.hash(id, password);
    }
}
